<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" lang="zh" xml:lang="zh">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>工具向导: 使用 Rational TestFactory 评估执行测试套件的结果</title>
<meta content="ToolMentor" name="uma.type">
<meta content="eval_execution_of_suite" name="uma.name">
<meta content="使用 Rational TestFactory 评估执行测试套件的结果" name="uma.presentationName">
<meta content="Tool:rup_test_factory:Rational TestFactory" name="uma.category">
<meta name="element_type" content="tool_mentor">
<meta content="Rational TestFactory" name="tool">
<meta content="description" name="filetype">
<meta name="role" content="">
<link type="text/css" href="./../../../css/default.css" rel="StyleSheet">
<script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageResource.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSubSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageToolbar.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/contentPage.js"></script><script language="JavaScript" type="text/javascript">
					var backPath = './../../../';
					var imgPath = './../../../images/';
					var nodeInfo=[{view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_mp7z0DIDEdqwaNnSEheSAg", "_9U7IkDIEEdqwaNnSEheSAg", "{FBA5098E-2CA8-483D-814D-DE3E876426B1}", "{E4299918-C096-4CEE-A119-490B0DE11867}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_AUv4MAIMEdq-_NKqZM1EhA", "_5ZuQsAIUEdqEutyfYo0quQ", "{FBA5098E-2CA8-483D-814D-DE3E876426B1}", "{E4299918-C096-4CEE-A119-490B0DE11867}"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_jD8dUAIbEdqEutyfYo0quQ", "_F1OgYAIbEdqEutyfYo0quQ", "{FBA5098E-2CA8-483D-814D-DE3E876426B1}", "{E4299918-C096-4CEE-A119-490B0DE11867}"]}];
					contentPage.preload(imgPath, backPath, nodeInfo,  '', false, false, false);
				</script>
</head>
<body>
<div id="breadcrumbs"></div>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><a name="Top"></a>
<div id="page-guid" value="{E4299918-C096-4CEE-A119-490B0DE11867}"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap="true" class="pageTitle">工具向导：使用 Rational TestFactory 评估执行测试套件的结果</td><td width="100%">
<div id="contentPageToolbar" align="right"></div>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="pageTitleSeparator"><img height="1" title="" alt="" src="./../../../images/shim.gif"></td>
</tr>
</table>
<div class="overview">
<table cellpadding="0" cellspacing="0" border="0" width="97%">
<tr>
<td width="50"><img title="" alt="" src="./../../../images/toolmentor.gif"></td><td>
<table cellpadding="0" cellspacing="0" border="0" class="overviewTable">
<tr>
<td valign="top">此工具向导描述如何使用 Rational TestFactory 评估执行测试套件的结果。</td>
</tr>
<tr>
<td>工具：<a href="./../../../core.base_rup/tools/rup_test_factory_3EDA2115.html" guid="{FBA5098E-2CA8-483D-814D-DE3E876426B1}">Rational TestFactory</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">关系</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<th scope="row" class="sectionTableHeading">相关元素</th><td class="sectionTableCell">
<ul>
<li>
<a href="./../../../core.base_rup/tasks/execute_test_suite_492795DE.html" guid="{6B420194-5EB7-4A12-A061-09FAA5DC18DE}">执行测试套件</a>
</li>
<li>
<a href="./../../../core.base_rup/tasks/determine_test_results_630C9EC9.html" guid="{74E51E86-ECAB-4A61-9A88-FD358EE6F2B1}">确定测试结果</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">主要描述</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<td class="sectionTableSingleCell"><a id="Top" name="Top"></a> 
<h3>
    概述
</h3>
<p>
    在 Rational TestFactory 中执行了测试套件之后，可评估其结果。有关在 TestFactory 中使用测试套件运行测试脚本套件的信息，请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/execute_suite_of_test_scripts_EAA12F07.html" guid="{ED7B74BA-112A-4A6A-9E2A-9B8958AF7293}">工具向导：执行测试脚本套件</a>。
</p>
<p>
    在运行 98/2000/NT 4.0 时此工具向导可用。
</p>
<p>
    要使用 Rational TestFactory 评估执行测试脚本套件的结果：
</p>
<ol>
    <li>
        <a href="#Review script status">查看测试套件中测试脚本的运行状态</a>
    </li>
    <li>
        <a href="#Analyze code coverage">分析基于代码的测试覆盖率</a>
    </li>
</ol>
<h3>
    1. <a id="Review script status" name="Review script status">查看测试套件中测试脚本的运行状态</a>
</h3>
<p>
    当测试套件是在 Rational TestFactory 主窗口的左窗格中选中的对象时，右窗格中的<b>状态</b>选项卡将显示运行结果。对于测试套件中列出的各测试脚本，将有一个状态值说明 TestFactory
    是否成功执行了该测试脚本。
</p>
<p>
    如果测试脚本未能成功运行，则可在 Rational TestManager 中分析其运行日志。
</p>
<p>
    <img height="16" alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" width="16" />&nbsp;&nbsp; 请参考 Rational TestFactory
    联机帮助中的以下主题：
</p>
<ul>
    <li>
        <i>Test Suite- tab</i>
    </li>
    <li>
        <i>Review the run status of a Test Suite</i>
    </li>
    <li>
        <i>View the log for a script run</i>
    </li>
</ul>
<h3>
    2. <a id="Analyze code coverage" name="Analyze code coverage">分析基于代码的测试覆盖率</a>
</h3>
<p>
    如果在运行测试套件之前检测了被测试应用程序（AUT），则可查看测试套件基于代码的测试覆盖率数据。当测试套件是在 Rational TestFactory
    主窗口的左窗格中选中的对象时，右窗格中的<b>覆盖率</b>选项卡将显示测试套件中运行的所有测试脚本的基于代码的组合覆盖率值。
</p>
<p>
    Rational TestFactory 将把基于代码的测试覆盖率值计算为测试脚本所覆盖源代码相对于被测试应用程序中<i>所有</i>源代码的百分比。如果有权访问 AUT 的源文件，则可使用 TestFactory
    中的覆盖率浏览器查看源文件中的代码，并检查测试脚本覆盖了哪些代码行。
</p>
<p>
    也可以查看测试套件中包含的个别测试脚本的基于代码的覆盖率值。 双击测试套件的<b>状态</b>选项卡上的测试脚本将在左窗格中选中该测试脚本。有关详细信息，请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/eval_test_coverage_8F1DEC44.html" guid="{D4C656B2-68B7-4C88-B999-FA80AA417C6C}">工具向导：评估测试覆盖率</a>。
</p>
<p>
    <img height="16" alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" width="16" />&nbsp;&nbsp; 请参考 Rational TestFactory
    联机帮助中的以下主题：
</p>
<ul>
    <li>
        <i>Instrumenting the application-under-test</i>
    </li>
    <li>
        <i>Test Suite- tab</i>
    </li>
    <li>
        <i>Review code coverage results for a Test Suite</i>
    </li>
</ul><br />
<br /></td>
</tr>
</table>
</div>
<table cellpadding="0" cellspacing="0" border="0" class="copyright">
<tr>
<td class="copyright"><p>
    &copy; &nbsp;Copyright IBM Corp.&nbsp;1987, 2006. &nbsp;All Rights Reserved.
</p></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<script language="JavaScript" type="text/javascript">
				contentPage.onload();
			</script>
</html>
